
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type SystemNoticeAdminRequest struct {

	NoticeType string `json:"notice_type" form:"notice_type"`

	AdminId string `json:"admin_id" form:"admin_id"`

	LinkId string `json:"link_id" form:"link_id"`

	TableData string `json:"table_data" form:"table_data"`

	IsClick string `json:"is_click" form:"is_click"`

	IsVisit string `json:"is_visit" form:"is_visit"`

	VisitTime string `json:"visit_time" form:"visit_time"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *SystemNoticeAdminRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *SystemNoticeAdminRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"notice_type": "required",

		"admin_id": "required",

		"link_id": "required",

		"table_data": "required",

		"is_click": "required",

		"is_visit": "required",

		"visit_time": "required",

		"add_time": "required",

	}
}

func (r *SystemNoticeAdminRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemNoticeAdminRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemNoticeAdminRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
